Skip to content

Fix issue #26: P0 bug: bug: run-qa-agent.sh and run-report-…#120

Closed
jpleva91 wants to merge 1 commit intomainfrom
cata/brain-26-1775283229
Closed

Fix issue #26: P0 bug: bug: run-qa-agent.sh and run-report-…#120
jpleva91 wants to merge 1 commit intomainfrom
cata/brain-26-1775283229

Conversation

@jpleva91
Copy link
Copy Markdown
Contributor

@jpleva91 jpleva91 commented Apr 4, 2026

Auto-generated by Cata via /evolve dispatch

Task: brain-26-1775283229

Copilot AI review requested due to automatic review settings April 4, 2026 06:15
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses issue #26 by making the QA and report runner scripts self-sufficient: if the ./shellforge binary isn’t present in the repo root, the scripts will build it before executing the requested command.

Changes:

  • Add an on-demand go build -o shellforge ./cmd/shellforge step to run-qa-agent.sh when ./shellforge is missing.
  • Add an on-demand go build -o shellforge ./cmd/shellforge step to run-report-agent.sh when ./shellforge is missing.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
scripts/run-report-agent.sh Builds ./shellforge if missing, then runs shellforge report.
scripts/run-qa-agent.sh Builds ./shellforge if missing, then runs shellforge qa.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

set -euo pipefail
cd "$(dirname "$0")/.."

if [[ ! -f ./shellforge ]]; then
Copy link

Copilot AI Apr 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build guard only checks for file existence (-f). If ./shellforge exists but is not executable (e.g., permissions lost when copying artifacts), the script will skip the build and then exec ./shellforge ... will fail. Consider checking -x (or falling back to rebuilding/chmod) so the script self-heals in this case.

Suggested change
if [[ ! -f ./shellforge ]]; then
if [[ ! -x ./shellforge ]]; then

Copilot uses AI. Check for mistakes.
set -euo pipefail
cd "$(dirname "$0")/.."

if [[ ! -f ./shellforge ]]; then
Copy link

Copilot AI Apr 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build guard only checks for file existence (-f). If ./shellforge exists but is not executable (e.g., permissions lost when copying artifacts), the script will skip the build and then exec ./shellforge ... will fail. Consider checking -x (or falling back to rebuilding/chmod) so the script self-heals in this case.

Suggested change
if [[ ! -f ./shellforge ]]; then
if [[ ! -x ./shellforge ]]; then

Copilot uses AI. Check for mistakes.
@jpleva91 jpleva91 closed this Apr 4, 2026
@jpleva91 jpleva91 deleted the cata/brain-26-1775283229 branch April 4, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants